<!DOCTYPE>
<html>
@include('common/head')
<body>
<!--header-->
@include('common/navbar')
<!-- header end -->

<div class="page-container">
  <div class="page-content" id="mainContents">
    <div class="container-fluid">
      <div class="row-fluid clearfix"> 
        <!-- BEGIN STYLE CUSTOMIZER -->
        <div class="span12">
          <h3 class="page-title">&nbsp; </h3>
        </div>
        <!-- END PAGE TITLE & BREADCRUMB--> 
      </div>
      <div class="row-fluid">
        <div class="tabbable tabbable-custom tabbable-full-width">
          <ul class="nav nav-tabs">
            <li class="active"><a data-toggle="tab" href="#tab_1_12">危化品详情</a></li>
          </ul>
          <div class="form-content"> 
            <!---->
            <div class="row-fluid margin-bottom-25">
              <div class="span12"> 
                <!-- BEGIN VALIDATION STATES-->
                <div class="portlet box gdcdc">
                  <div class="row-fluid clearfix detail-aller">
                    <div class="span10">
                      <div class="detail-tleft">
                        <div class="btn-group"> 
                          <!--<button id="sample_add_1" class="btn btn-success">
													新增订单
													</button>	--> 
                          <a href="{{url('/dangerous/dangerous/dangerous_add')}}" id="sample_detaladd" class="btn btn-success"> 新增危化品 </a> </div>
                        {{--<div class="btn-group">--}}
                          {{--<button id="sample_detalhist" class="btn btn-warning"> 历史记录 </button>--}}

                        {{--</div>--}}

                      </div>
                    </div>
					  <div class="span2">
						  <div class="buess-trgt text-right">
							  <div class="btn-group">
								  <a href="{{url('/dangerous/dangerous/correction',['id'=>$dangerousList->id])}}" id="sample_error_1" class="btn btn-danger btn-jiucuo">
									  纠错
								  </a>
							  </div>
						  </div>
					  </div>
                  </div>
                  <div class="row-fluid clearfix">
                    <div class="span12"> 
                      <!--基本信息-->
                      <div class="detail-item-left weipin-mrgt">
                        <ul class="breadcrumb clearfix">
                          <li><a href="javascript:;">基本信息</a></li>

                        </ul>
                        <div class="detal-form form-horizontal" id="j-baseinfo"> 
                          <!--start-->
                          <div class="row-fluid clearfix">
                          	<div class="span2 wei-mrtleft">
                          		<div class="control-group wei-itemleft">
                          		 	<img src="{{URL::asset($dangerousList->structure)}}" class="wei-itimg">
                          		</div>
                          	</div>
                          	<div class="span10">
                          		<!--st-->
                          		<div class="row-fluid clearfix">
                          			<div class="span5">
		                              <div class="control-group">
		                                <label class="control-label tanwid">西陇名称：</label>
		                                <div class="controls wlft">					
										<input type="text" class="span10 m-wrap notallow c-xilongname" autocomplete="off" disabled="disabled" value="{{$dangerousList->xl_name}}">
										</div>
		                              </div>
		                           </div>
		                            <div class="span6">
		                              <div class="control-group">
		                                <label class="wei-label tanwid">CAS号：</label>
		                                <div class="controls wlft">{{$dangerousList->cas}}</div>
		                              </div>
		                            </div>
                          		</div>
                          		<!--end-->
                          		
                          		<div class="row-fluid clearfix">
                          			<div class="span5">
		                              <div class="control-group">
		                                <label class="wei-label tanwid">中文名称：</label>
		                                <div class="controls wlft">{{$dangerousList->zh_name}}</div>
		                              </div>
		                            </div>

		                            <div class="span6">
		                              <div class="control-group">
		                                <label class="wei-label tanwid">EINECS号：</label>
		                                <div class="controls wlft">{{$dangerousList->einecs}}</div>
		                              </div>
		                            </div>
                          		</div>
                          		
                          		<div class="row-fluid clearfix">
                          			<div class="span5">
		                              <div class="control-group">
		                                <label class="wei-label tanwid">别名：</label>
		                                <div class="controls wlft wei-othername">
											@foreach(explode('，',$dangerousList->alias) as $k=>$v)
		                                	<a class="wa">{{$v}}</a>
											@endforeach

		                                </div>
		                              </div>
		                            </div>

		                            <div class="span6">
		                              <div class="control-group">
		                                <label class="wei-label tanwid">分子式：</label>
		                                <div class="controls wlft">{{$dangerousList->molecule}}</div>
		                              </div>
		                            </div>
		                            <div class="span6">
		                              <div class="control-group">
		                                <label class="wei-label tanwid">分子量：</label>
		                                <div class="controls wlft">{{$dangerousList->molecule_num}}</div>
		                              </div>
		                            </div>
                          		</div>
                          	</div>
                          </div>
                          <!--end-->
                        </div>
                      </div>
                      <!--end--> 
                      <!--物化性质-->
                      <div class="detail-item-left weipin-mrgt">
												<ul class="breadcrumb clearfix">
                          <li><a href="javascript:;">物化性质</a></li>

                        </ul>
								        <div class="detal-form form-horizontal">
								        	<!--start-->
								        	<div class="row-fluid clearfix">
								        		<div class="span12">
								        			<div class="control-group">
																<label class="detal-label tanwid">外观及形状：</label>
																<div class="controls mlft">{{$dangerousList->shape}}</div>
															</div>
								        		</div>
								        	</div>
								        	<div class="row-fluid clearfix">
								        		<div class="span12">
								        			<div class="control-group">
																<label class="detal-label tanwid">储存条件：</label>
																<div class="controls mlft">{{$dangerousList->storage}}</div>
															</div>
								        		</div>
								        	</div>
								        </div>
											</div>	
											<!--安全信息-->
                      <div class="detail-item-left weipin-mrgt">
												<ul class="breadcrumb">
								          <li><a href="javascript:;">安全信息</a></li>		  

								        </ul>
								        <div class="detal-form form-horizontal">
								        	<!--start-->
								        	<div class="row-fluid clearfix">
								        		<div class="span12">
								        			<div class="control-group">
																<label class="detal-label tanwid">符号： </label>
																<div class="controls mlft wei-fusign">
																	<img src="{{URL::asset($dangerousList->symbol)}}" class="wei-itimg">
																</div>			
															</div>
								        		</div>
								        	</div>
								        	<div class="row-fluid clearfix">
								        		<div class="span12">
								        			<div class="control-group">
																<label class="detal-label tanwid">风险术语： </label>
																<div class="controls mlft">{{$dangerousList->risk}}</div>
															</div>
								        		</div>
								        	</div>
								        	<div class="row-fluid clearfix">
								        		<div class="span12">
								        			<div class="control-group">
																<label class="detal-label tanwid">安全术语： </label>
																<div class="controls mlft">{{$dangerousList->security}}</div>
															</div>
								        		</div>
								        	</div>
								        </div>
											</div>
											<!--用途-->
                      <div class="detail-item-left weipin-mrgt">
												<ul class="breadcrumb">
								          <li><a href="javascript:;">用途</a></li>	

								        </ul>
								        <div class="detal-form form-horizontal">
								        	<!--start-->
								        	<div class="row-fluid clearfix">
								        		<div class="span12">
								        			<div class="control-group">
																<label class="detal-label tanwid">用途： </label>
																<div class="controls mlft">{{$dangerousList->purpose}}</div>
															</div>
								        		</div>
								        	</div>
								        </div>
											</div>
											<!--上游产品-->
											<div class="detail-item-left weipin-mrgt">
												<ul class="breadcrumb">
								          <li><a href="javascript:;">上游产品</a></li>		

								        </ul>
								        <div class="detal-form form-horizontal">
								        	<!--start-->
								        	<div class="row-fluid clearfix">
								        		<div class="span12">
								        			<ul class="wei-upul clearfix">
														@foreach($dangerous_upstream as $k=>$v)
								        				<li>
								        					<div class="done"><img src="{{URL::asset('static/images/cardimg01.png')}}" class="wei-itimg"></div>
								        					<p>{{$v->goods_name}}</p>
								        				</li>
														@endforeach

								        			</ul>
								        		</div>
								        	</div>
								        </div>
											</div>
											<!--下游产品-->
											<div class="detail-item-left weipin-mrgt">
												<ul class="breadcrumb">
								          <li><a href="javascript:;">下游产品</a></li>	

								        </ul>
								        <div class="detal-form form-horizontal">
								        	<!--start-->
								        	<div class="row-fluid clearfix">
								        		<div class="span12">
								        			<ul class="wei-upul clearfix">
														@foreach($dangerous_downstream as $k=>$v)
															<li>
																<div class="done"><img src="{{URL::asset('static/images/cardimg01.png')}}" class="wei-itimg"></div>
																<p>{{$v->goods_name}}</p>
															</li>
														@endforeach
								        			</ul>
								        		</div>
								        	</div>
								        </div>
											</div>
											
                    </div>
                  </div>
                </div>
                <!-- END VALIDATION STATES--> 
              </div>
            </div>
            <!--end tab-pane--> 
          </div>
        </div>
        <!--end tabbable--> 
      </div>
    </div>
  </div>
</div>

<!-- footer -->
<div class="footer">
  <div class="footer-inner"> Copyright &copy; 开单管理   沪ICP备16047540号-1</div>
  <div class="footer-tools"> <span class="go-top"> <i class="icon-angle-up"></i> </span> </div>
</div>
<div class="modelhist j-bussHistModel hide">
    <div class="portlet-body">
        <div class="orderhist margin-bottom-20">
            <table class="table table-bordered tablelist" id="dataTableDetail">
                <thead class="tbhead">
                <tr>
                    <th class="t1">
                        <p>操作时间</p>
                    </th>
                    <th class="t1">
                        <p>操作人</p>
                    </th>
                    <th class="t1">
                        <p>描述</p>
                    </th>
                    <th class="t1">
                        <p>备注</p>
                    </th>
                </tr>
                </thead>
                <tbody class="tbbody">
                @foreach($historyAll as $k=>$v)
                    <tr>
                        <td>{{$v->created_time}}</td>
                        <td>{{$v->username}}</td>
                        <td>{{$v->description}}</td>
                        <td>{{$v->tag}}</td>
                    </tr>
                @endforeach

                </tbody>
            </table>
        </div>
        <div class="row-fluid">
            <div class="span6"><div class="dataTables_info" id="sample_editable_1_info">共{{$historyAll->count()}}条数据</div></div>
            <div class="span6">
                {{$historyAll->links()}}
            </div>
        </div>
    </div>
</div>
<link href="{{URL::asset('static/style/lib/yy_buesslicence.css')}}" rel="stylesheet" type="text/css">
<script src="{{URL::asset('static/js/lib/common.js')}}" type="text/javascript"></script>
<script type="text/javascript" src="{{URL::asset('static/js/public/app.js')}}"></script>
<script type="text/javascript" src="{{URL::asset('static/js/lib/wei_details.js')}}"></script>
<script>
	jQuery(document).ready(function() {   
	   // initiate layout and plugins
	   App.init();
	});

	//$(".j-ordernum").attr("disabled",false);//启用input标签

</script>
</body>
</html>